package com.lm.dao;

import java.util.List;

import com.lm.dto.TaoCanDTO;
import com.lm.model.Subtaocan;
import com.lm.model.Taocan;

public interface TaoCanDAO {
	public List getAllTaoCanListByEventID(String eventID) throws Throwable ;

	public List getAllSubTaoCanListByTaoCanID(String taocanID) throws Throwable ;

	public TaoCanDTO getSubTaoCanByTaoCanIDAndSubTaoCanID(String taocanID,
			String subTaoCanID) throws Throwable ;

	public double getTotalMarketBid(String taocanID) throws Throwable ;

	public double getTotalCardBid(String taocanID) throws Throwable ;

	public void addTaoCan(Taocan tc) throws Throwable ;

	public void addSubTaoCan(Subtaocan stc, String taocanID) throws Throwable ;

	public Taocan getTaoCanByIDAndEventID(String taocanID, String eventID)
			throws Throwable ;

	public Taocan getTaoCanByID(String taocanID) throws Throwable ;

	public void editTaoCanByTaoCanID(Taocan tc, String taocanID)
			throws Throwable ;

	public void editTaoCanByTaoCanID(double totalCardBid,
			double totalMarketBid, double CardMinus, String taocanID)
			throws Throwable ;

	public void editSubTaoCanBySubTaoCanID(Subtaocan stc,
			String subtaocanID) throws Throwable ;

	public void deleteTaoCanByEventIDAndTaoCanID(String taocanID, String eventID)
			throws Throwable ;

	public void deleteTaoCanByEventID(String eventID) throws Throwable ;

	public void deleteSubTaoCanByTaoCanIDAndSubTaoCanID(String taocanID,
			String subtaocanID) throws Throwable ;

	public void deleteSubTaoCanByTaoCanIDs(String taocanIDs) throws Throwable ;

	public void deleteSubTaoCanByTaoCanID(String taocanID) throws Throwable;


}
